package com.gk.panda.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("elec_rail")
@ApiModel("电子围栏实体")
public class ElecRail {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;

    @TableField("org_id")
    @ApiModelProperty(value = "所属机构id")
    private Integer orgId;

    @TableField("org_name")
    @ApiModelProperty(value = "所属机构名称")
    private String orgName;

    @TableField("is_core")
    @ApiModelProperty(value = "是否是核心区域（0-核心区域 1-一般区域）")
    private Integer isCore;

    @TableField("elec_rail_id")
    @ApiModelProperty(value = "电子围栏编号")
    private String elecRailId;

    @TableField("geo_json")
    @ApiModelProperty(value = "GeoJSON数据")
    private String geoJson;

    @TableField("del_flag")
    @ApiModelProperty(value = "删除标志0-未删除1-已删除")
    private Integer delFlag;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "备注")
    private String remark;

}
